package cn.iocoder.mall.product.dto;

import cn.iocoder.common.utils.common.system.util.Long2StringSerializer;
import cn.iocoder.common.utils.common.system.util.String2LongDeserialize;
import cn.iocoder.mall.product.dataobject.ProductAttrDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 商品SKU
 * @Author: jeecg-boot
 * @Date:   2019-11-22
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)

public class CommoditySkuDTO implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**规格值({@link ProductAttrDO})数组
     *
     * 数组，以逗号分隔*/
    @Excel(name = "规格值({@link ProductAttrDO})数组** 数组，以逗号分隔", width = 15)
	private java.lang.String attrs;
	/**条形码*/
    @Excel(name = "条形码", width = 15)
	private java.lang.String barcode;
	/**品牌*/
    @Excel(name = "品牌", width = 15)
	private java.lang.String brand;
	/**购物车，缩略图*/
    @Excel(name = "购物车，缩略图", width = 15)
	private java.lang.String cartThumbnail;

	/**成本价*/
    @Excel(name = "成本价", width = 15)
	private Integer costPirce;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**是否删除（0：未删除，1：已删除）*/
    @Excel(name = "是否删除（0：未删除，1：已删除）", width = 15)
	private Boolean deleted;
	/**sku 编号*/
    @JsonDeserialize(using = String2LongDeserialize.class)
    @JsonSerialize(using = Long2StringSerializer.class)
	private Long id;
	/**是否默认*/
    @Excel(name = "是否默认", width = 15)
	private String defaulted;
	/**itemSn*/
    @Excel(name = "itemSn", width = 15)
	private String itemSn;
	/**市场价*/
    @Excel(name = "市场价", width = 15)
	private Integer marketPrice;
	/**图片地址*/
    @Excel(name = "图片地址", width = 15)
	private String picUrl;
	/**价格，单位：分*/
    @Excel(name = "价格，单位：分", width = 15)
	private Integer price;
	/**库存数量*/
    @Excel(name = "库存数量", width = 15)
	private Integer quantity;
	/**商品卖点*/
    @Excel(name = "商品卖点", width = 15)
	private String sellPoint;
	/**商品编号(SPU_id)*/
	private Long spuId;
	/**状态
     * 1-正常
     * 2-禁用
     */
    @Excel(name = "状态** 1-正常* 2-禁用", width = 15)
	private java.lang.Integer status;
    /**状态
     * 1-上架
     * 2-下架
     */

	/**库存量（待用）*/
    @Excel(name = "库存量（待用）", width = 15)
	private java.lang.Integer stockCount;
	/**商品标题*/
    @Excel(name = "商品标题", width = 15)
	private java.lang.String title;
	/**最后更新时间1*/
	private java.util.Date updateTime;
	/**version*/
    @Excel(name = "version", width = 15)
	private java.lang.Integer version;
}
